<?php

require_once("View/TopicView.php");
require_once("Model/TopicList.php");

class TopicControllerOutput
{
	public $topicHtml = "";
}


class TopicController
{
	public function DoControll(Database $db, TopicList $topicList)
	{
		$tv = new TopicView();
		
		$topic = NavigationView::getSelectedTopic($topicList);
		
		//$out = new TopicControllerOutput();
		$out = $tv->RenderTopic($topic);
		
		return $out;
		
	}
}

?>